(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/home/components/service-nav/index" ], {
    "0d84": function(e, t, n) {
        var i = n("5be9");
        n.n(i).a;
    },
    2274: function(e, t, n) {
        n.r(t);
        var i = n("4665"), a = n("3eb4");
        for (var r in a) [ "default" ].indexOf(r) < 0 && function(e) {
            n.d(t, e, function() {
                return a[e];
            });
        }(r);
        n("0d84");
        var u = n("f0c5"), c = Object(u.a)(a.default, i.b, i.c, !1, null, null, null, !1, i.a, void 0);
        t.default = c.exports;
    },
    "3eb4": function(e, t, n) {
        n.r(t);
        var i = n("6253"), a = n.n(i);
        for (var r in i) [ "default" ].indexOf(r) < 0 && function(e) {
            n.d(t, e, function() {
                return i[e];
            });
        }(r);
        t.default = a.a;
    },
    4665: function(e, t, n) {
        n.d(t, "b", function() {
            return i;
        }), n.d(t, "c", function() {
            return a;
        }), n.d(t, "a", function() {});
        var i = function() {
            var e = this, t = (e.$createElement, e._self._c, e.serviceList && e.serviceList.length > 1), n = t ? e.__map(e.oneLevelServiceList, function(t, n) {
                return {
                    $orig: e.__get_orig(t),
                    g1: t.title.length,
                    m0: Number(t.service_type),
                    m1: Number(t.service_type)
                };
            }) : null;
            e.$mp.data = Object.assign({}, {
                $root: {
                    g0: t,
                    l0: n
                }
            });
        }, a = [];
    },
    "5be9": function(e, t, n) {},
    6253: function(e, t, n) {
        (function(e) {
            var i = n("4ea4").default;
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.default = void 0;
            var a = i(n("a34a")), r = i(n("c973")), u = i(n("ded3")), c = i(n("6374")), l = n("1b37"), o = n("3be3"), s = n("8f12"), d = n("8f93"), v = n("48b8"), p = (n("2340"), 
            n("fc9e")), m = n("fd0e"), f = n("665c"), b = i(n("0613")), _ = n("05dc"), g = n("0d12"), h = {
                setup: function(t, n) {
                    var i = {
                        bubblePadding: 32,
                        fontSize: 30
                    }, h = n.emit;
                    (0, m.onBeforeMount)(function() {
                        h("loaded", {
                            handleBubbleExpo: F
                        });
                    });
                    var y = 0, x = ((0, m.ref)(!1), (0, m.ref)(0)), S = (0, f.useState)(), N = S.selectedService, k = S.serviceList, C = (S.userVariables, 
                    S.selectedHomeSmallVehicle), O = S.selectedHomeRefrigeratedVehicle, T = S.userClickTabType, w = S.firstEntryBigCat, L = (0, 
                    f.useGetters)(), B = (L.vehicleList, L.startAddress), E = L.selectedVehicle, M = L.commonStatisticsState, W = (L.bigCarVehicles, 
                    L.bigVehicleModule), I = L.isLogined, j = (0, m.computed)(function() {
                        return V.value[z.value].title.length * i.fontSize + 2 * i.bubblePadding;
                    }), A = (0, m.computed)(function() {
                        var e, t = 0, n = (0, c.default)(V.value.slice(0, z.value));
                        try {
                            for (n.s(); !(e = n.n()).done; ) {
                                t += e.value.title.length * i.fontSize + 2 * i.bubblePadding;
                            }
                        } catch (e) {
                            e = VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(e);
                            n.e(e);
                        } finally {
                            n.f();
                        }
                        return t;
                    }), V = (0, m.computed)(function() {
                        var e = [];
                        return k.value.forEach(function(t) {
                            1 === Number(t.entry_type) && (t.bubble = function(e) {
                                var t, n, i = e.corner_marker, a = void 0 === i ? {} : i, r = a.static_title, u = void 0 === r ? "" : r, c = a.dynamic_titles, l = void 0 === c ? "" : c, o = "", s = null, d = "", v = {
                                    maxWidth: 0,
                                    minWidth: 0,
                                    padding: 0,
                                    swiper: ""
                                };
                                if (!u && !l) return {};
                                if (u && (o = "static", s = [ u ]), l && (o = "dynamic", s = l.split(",")), 0 === (s = null !== (t = null === (n = s) || void 0 === n ? void 0 : n.filter(function(e) {
                                    return !!e;
                                })) && void 0 !== t ? t : []).length) return {};
                                var m = s.sort(function(e, t) {
                                    return (0, p.byteLength)(t) - (0, p.byteLength)(e);
                                }), f = 5 * ((0, p.byteLength)(m[0]) + 2), b = {
                                    static: {
                                        maxWidth: 190,
                                        minWidth: 17,
                                        padding: 12
                                    },
                                    dynamic: {
                                        maxWidth: 108,
                                        minWidth: 21,
                                        padding: 9
                                    }
                                }[o], _ = b.maxWidth, g = b.minWidth, h = b.padding, y = Number(g > f ? g : f), x = _ + h;
                                return d += "\n        height: 30rpx;\n        width: ".concat(y, "px;\n        min-width: ").concat(g, "px;\n        max-width: ").concat(x, "rpx;\n      "), 
                                v.swiper = "padding: 0 !important;line-height: 30rpx;font-size: 20rpx;", "static" === o ? d += "left: 17px;padding:0 10rpx;" : "dynamic" === o && (d += "left: calc(100% - 98rpx);padding:0 8rpx;"), 
                                {
                                    list: s,
                                    theme: o,
                                    style: d,
                                    otherStyle: v
                                };
                            }(t), t.bubbleAutoplay = "dynamic" === t.bubble.theme, e.push(t));
                        }), e;
                    }), R = (0, m.computed)(function() {
                        return V.value.findIndex(function(e) {
                            return 1 === Number(e.service_type);
                        });
                    }), H = (0, m.computed)(function() {
                        var e = V.value.findIndex(function(e) {
                            return 5 === Number(e.service_type);
                        });
                        return e < 0 && b.default.commit("resetGoodsInfoAndBigVehicle"), e;
                    }), P = (0, m.computed)(function() {
                        return V.value.findIndex(function(e) {
                            return 21 === Number(e.service_type);
                        });
                    }), U = (0, m.computed)(function() {
                        return V.value.findIndex(function(e) {
                            return 3 === Number(e.service_type);
                        });
                    }), z = (0, m.computed)(function() {
                        return 1 === N.value ? Math.max(R.value, 0) : 5 === N.value && H.value >= 0 ? H.value : 21 === N.value && P.value >= 0 ? P.value : 3 === N.value && U.value >= 0 ? U.value : Math.max(R.value, 0);
                    });
                    (0, m.watch)(function() {
                        return E.value;
                    }, function(e) {
                        return J.apply(this, arguments);
                    }, {
                        immediate: !0,
                        deep: !0
                    }), (0, m.watch)(function() {
                        return z.value;
                    }, function() {
                        0 === z.value && (x.value = 0 === x.value ? 1 : 0);
                        var e = Number(V.value[z.value].service_type);
                        b.default.commit("setState", {
                            selectedService: e
                        }), function() {
                            $.apply(this, arguments);
                        }();
                    }, {
                        immediate: !0
                    }), (0, v.throttle)(function() {
                        (0, o.jumpWelfareCenter)();
                    });
                    var D = !1;
                    function J() {
                        return (J = (0, r.default)(a.default.mark(function t(n) {
                            var i, r, u, c, l, o, v;
                            return a.default.wrap(function(t) {
                                for (;;) switch (t.prev = t.next) {
                                  case 0:
                                    if (g.setServiceTypeDone.value) {
                                        t.next = 2;
                                        break;
                                    }
                                    return t.abrupt("return");

                                  case 2:
                                    if (i = e.getStorageSync(s.COMMON.USER_CHOOSE_TAB), !n) {
                                        t.next = 18;
                                        break;
                                    }
                                    if (r = 1 === n.is_big_vehicle && 1 === n.vehicle_attr || "bigCar" === i ? 5 : 1, 
                                    E.value.frontEndRefrigeratedName && (r = 21), y && (r = y), (u = T.value.serviceType) && (r = u, 
                                    3 === u && (0, _.statistics)("business_introduction_expo", {
                                        business_type: String(u),
                                        page_from: String(T.value.pageFrom)
                                    })), 5 !== r || w.value || !I.value) {
                                        t.next = 16;
                                        break;
                                    }
                                    return b.default.commit("setState", {
                                        firstEntryBigCat: !0
                                    }), l = {
                                        order_vehicle_id: E.value.order_vehicle_id,
                                        city_id: null === (c = B.value) || void 0 === c ? void 0 : c.city_id
                                    }, t.next = 14, (0, d.getBigCarAb)(l);

                                  case 14:
                                    0 === (o = t.sent).ret && (v = o.data.truck_promotion_ab, b.default.commit("setState", {
                                        truckPromotionAb: v
                                    }));

                                  case 16:
                                    b.default.commit("setState", {
                                        selectedService: r,
                                        userClickTabType: {
                                            serviceType: null,
                                            pageFrom: null
                                        }
                                    }), y = 0;

                                  case 18:
                                  case "end":
                                    return t.stop();
                                }
                            }, t);
                        }))).apply(this, arguments);
                    }
                    function $() {
                        return ($ = (0, r.default)(a.default.mark(function t() {
                            return a.default.wrap(function(t) {
                                for (;;) switch (t.prev = t.next) {
                                  case 0:
                                    if (g.setServiceTypeDone.value) {
                                        t.next = 2;
                                        break;
                                    }
                                    return t.abrupt("return");

                                  case 2:
                                    try {
                                        5 === Number(N.value) && e.setStorageSync(s.COMMON.USER_CHOOSE_TAB, "bigCar"), 1 === Number(N.value) && e.setStorageSync(s.COMMON.USER_CHOOSE_TAB, "smallCar"), 
                                        21 === Number(N.value) && e.setStorageSync(s.COMMON.USER_CHOOSE_TAB, "refrigeratedCar");
                                    } catch (e) {}

                                  case 3:
                                  case "end":
                                    return t.stop();
                                }
                            }, t);
                        }))).apply(this, arguments);
                    }
                    function F() {
                        if (-1 !== H.value) {
                            var e = (V[H.value] || {
                                corner_marker: {}
                            }).corner_marker, t = e.static_title, n = e.dynamic_titles, i = t || n;
                            i && (0, _.statistics)("homepage_business_mark_expo", (0, u.default)((0, u.default)({}, M.value), {}, {
                                business_type: 5,
                                mark_type: t ? "静态" : "动态",
                                mark_name: i
                            }));
                        }
                    }
                    return Object.assign({
                        homeLightTheme: g.homeLightTheme,
                        styles: i,
                        scrollLeft: x,
                        selectedService: N,
                        serviceList: k,
                        activeBubbleWidth: j,
                        transformDistance: A,
                        oneLevelServiceList: V,
                        activeIndex: z,
                        itemTap: function(t) {
                            var n, i, a = Number(null == t || null === (n = t.currentTarget) || void 0 === n || null === (i = n.dataset) || void 0 === i ? void 0 : i.index);
                            if (a !== z.value) {
                                if (D) return !1;
                                D = !0, setTimeout(function() {
                                    D = !1;
                                }, 400);
                                var r = V.value[a] || {};
                                (0, _.statistics)("homepage_business_select", (0, u.default)((0, u.default)({}, b.default.getters.commonStatisticsState), {}, {
                                    business_type: Number(r.service_type),
                                    position_type: "一级入口",
                                    business_abtest: "业务栏_实验组",
                                    business_name: r.title,
                                    is_denoise: b.default.getters.isDenoiseNewCache
                                }));
                                var c = 3 === Number(r.service_type);
                                if (1 === Number(r.type) && (5 === Number(r.service_type) || 1 === Number(r.service_type) || 21 === Number(r.service_type)) || c) {
                                    b.default.commit("setState", {
                                        selectedService: Number(r.service_type)
                                    });
                                    var s = 0;
                                    5 === N.value && (s = l.getBigIndex.value, 0 === E.value.vehicle_attr && 1 === E.value.is_big_vehicle && h("selectBigCar", {
                                        bigCar: E.value,
                                        bigCarFrom: "userTab"
                                    }));
                                    var v, p, m = "";
                                    if (1 === N.value && (m = null === (v = C.value) || void 0 === v ? void 0 : v.name), 
                                    21 === N.value && (m = null === (p = O.value) || void 0 === p ? void 0 : p.name), 
                                    m) s = (0, d.findSelectedVehicleListIndex)(m).index;
                                    y = Number(r.service_type), W.value || h("changeVehicle", {
                                        index: s
                                    }), h("changeTab", Number(r.service_type)), function(e) {
                                        var t = "", n = "";
                                        1 === e && (t = "homepage_smalltrucks_expo", n = "点击拉货tab"), 5 === e && (t = "homepage_largetrucks_expo", 
                                        n = "点击长途大车tab"), (0, _.statistics)(t, (0, u.default)((0, u.default)({}, b.default.getters.commonStatisticsState), {}, {
                                            page_from: n
                                        }));
                                    }(Number(r.service_type));
                                } else 2 === Number(r.type) ? e.navigateTo({
                                    url: "/pages/adWebview/index?target=" + encodeURIComponent(r.action_link)
                                }) : 3 === Number(r.type) && r.action_link && (0, o.jumpMiniProgram)({
                                    appId: r.wx_appid,
                                    path: r.action_link
                                }).then(function(e) {
                                    (0, _.statistics)("homepage_business_jump", {
                                        business_type: Number(r.service_type),
                                        position_type: "一级入口",
                                        jump_status: 0 === (null == e ? void 0 : e.ret) ? 1 : 0
                                    });
                                });
                            }
                        }
                    }, {
                        handleBubbleExpo: F
                    });
                }
            };
            h.components = Object.assign({
                ServiceBubble: function() {
                    n.e("pages/home/components/service-bubble/index").then(function() {
                        return resolve(n("cc74"));
                    }.bind(null, n)).catch(n.oe);
                }
            }, h.components);
            var y = h;
            t.default = y;
        }).call(this, n("543d").default);
    }
} ]), (global.webpackJsonp = global.webpackJsonp || []).push([ "pages/home/components/service-nav/index-create-component", {
    "pages/home/components/service-nav/index-create-component": function(e, t, n) {
        n("543d").createComponent(n("2274"));
    }
}, [ [ "pages/home/components/service-nav/index-create-component" ] ] ]);